-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lock typescript and api extractor file versions due to type conflicts in typescript versions > 4.3.5 #271
Conversation
@hawkticehurst just a heads up, I'm hitting errors on the lint step locally due to package issues, I think it may be related to peer dependencies. |
@chrisdholt, I was able to replicate the PR, and first off, yay/thank you for fixing the build script error that was happening!! 🥳 Secondly, I was also able to replicate the linting error and on my end, it looks like it's specifically coming from the need for peer dependencies that support Could you install the following:
After that update the
Finally, create a new
If you now run Note: There are still 18 |
Oh, it also looks like there's an error when building Storybook (i.e. the Could you just delete the |
Also updated your PR comment so this will close issue #252 once merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beyond the requests I made to see if we can resolve the CI pipeline lint/build issues, looks great! Thank you again!!
Sounds good - I'll dig into this later and see if we can get this taken care of! |
I've done this and locally everything checks out, including the warnings you mention above (though...those vars are used it seems :|). On the PR build though, it seems like this is an error with eslint not being found... |
I know, many ughs on the "unused" vars issue 😪... Also odd, I'll see if I can figure out what's going on with the pipeline then. |
Also, could you remove the Introduction file mentioned above and push the change to see if it will fix the failing |
For sure, was doing one at a time but will remove :) |
How baffling, looks like I may have at some point accidentally uninstalled eslint as a dev dependency??? (And then I assume that it got cached by the package-lock file). Regardless, package.json doesn't have the core
And then push those changes. |
Ahh doi, makes total sense :) |
Looks like Docs has passed, I think the issue is with a missing dependency on |
Yep, that's the exact problem. The thorny part of this issue in that storybook's guidance is that you don't directly install So addon-docs is in fact technically installed and is declared inside the package-lock as living under addon-essentials––which has worked just fine in the past. However, for whatever reason |
Ah, super interesting. I'll leave as-is for now. I wonder if the same issue exists with eslint not being found by the build? |
Yeah, it's a really bizarre one so I too am happy to leave it for now. Also, did you see my earlier comment about eslint? I think it got accidentally uninstalled at some point as a dev dependency but was just cached by the package-lock file. |
^ This comment. |
Yay! Seems like that fixed the linting issue, but now the pipeline just failed on a formatting error. Run the following command, push, and you should be good to go:
|
Oh and potentially looks like there's a deprecated prettier rule that may need to be removed? If you can remove the Thank you for all the help troubleshooting this! 😅 |
Whoops, did ya see this comment? |
Wooo! 🎉🎊 Once again thank you so much for this PR / for helping out on this issue! |
Huge thanks and kudos, @chrisdholt! |
Link to relevant issue
This pull request resolves #252
Description of changes
This PR locks the versions of typescript and api-extractor to versions which resolve to typescript versions no greater than 4.3.5 to allow api-extractor to successfully build without errors. The issue here is that ARIA attributes on components in FAST which delegate focus are explicitly defined - we need to pass those onto elements within the Shadow DOM. I think we determined that the types defined for those components conflict with types added in > 4.4.0. The types in question on the FAST end are explicit types, whereas the types on the typescript side of things are simply strings: https://github.com/microsoft/TypeScript/blob/release-4.4/lib/lib.dom.d.ts#L1859.
We'll get a conversation going, but for now in order to ensure API extractor works, it's likely best to lock the typescript version and the API extractor version to those which use typescript 4.3.5.